Technical Documentation



// Written by Sampath Satti

API and Interface

The API and Interface for this project are being implemented by the use of EzWindows. This is a set of header files and function which simplify the use of graphics. 

Features of EzWindows

1. Creating Windows

   Use " SimpleWindow <WindowName>("Title", length, height, position of center)

2. Rendering geometrical figures

   Render'Figure'(Attributes)


3. Detecting mouse clicks
	- To determine the position on screen where the mouse is clicked

	- To determine if the click is within a given bitmap image

             Bitmap.IsInside(MousePosition);

	- To execute a certain set of instructions on a certain click

         Window.SetMouseClickCallBack(MouseClickEvent);

			MouseClickEvent is a function which has its passing parameters as the position of the mouse click.
			


4. Coordinate system of EzWindows

   Position = Location( length, height) // length is length along x-axis, height is length along y-axis measured from the top left corner of the window

   Positions can also be added like vectors

5. Embedding Bitmaps

	- creating bitmap windows
	- giving attributes like 

6. Extracting data from figures

    Use functions GetXDisstance(), GetYDistance(), GetCenter(), GetColor(), Bitmap.GetWidth(), Bitmap.GetHeight().

7. Timer events


Use of the above functions in our GUI -

 As the GUI is not completeley functional, most of the features have not been used yet. So far we have only opened windows, rendered lines, text and extraction of data. The other parts will be done in the second part of our project..





